<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
<div id="app">
	<input @click="getRef" type="button" value="获取ref的数据">
	<h3 ref="myh3">快递客服答复，的快递费</h3>
	<tmpl ref="mytmpl"></tmpl>
</div>
<script src="node_modules/vue/dist/vue.js"></script>
<script>
var tmpl = {
	template:'<h5>组件</h5>'
}
var app = new Vue({
	el:'#app',
	data:{},
	components:{
		tmpl
	},
	methods:{
		getRef(){
			console.log(this.$refs.myh3.innerText)
			console.log(this.$refs.mytmpl)
		}
	}
})
</script>
</body>
</html>